/* Variablen */
:root {
    --primary-bg: #fff;
    --text-primary: #1e1f1f;
    --text-secondary: #1e1f1f;
    --text-heading: #111827;
    --text-light: #F9FAFB;
    --text-gray: #D1D5DB;
    --bg-light: #fff;
    --bg-dark: #333;
    --bg-gray: #ccc;
    --transition-speed: 0.3s;
    --max-width: 100vw;
    --border-radius: 0px;
    --content-box-bg-dim: 0.6;
    --content-box-bg-image: none;
    --icon-color: #a1a1a1;
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
    body>#weglot-switcher-1{display:none;}
/* Light Mode Background */
body {
    margin: 0 auto;
    font-family: ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
    height: 100vh;
    color: var(--text-primary);
}

/* Layout Komponenten */
.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 0px;
    align-items: stretch;
    margin-top: 0;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    flex-grow: 1;
    flex-shrink: 1;
}
#MainForm {
    height: 100%;
    width: 100%;
    position: fixed;
    background-color: var(--primary-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    transition: background-color var(--transition-speed) ease;
    /* overflow: auto; */
    background-image: linear-gradient(to bottom,
    rgba(129, 126, 126, 0.45),
    rgba(255, 255, 255, 0));
    
}
.content-box {
    display: none;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    background-color: rgb(245 245 245 / 100%);
    width: 100%;
    max-width: 42rem;
    overflow: auto;
    background-image: linear-gradient(rgba(245, 245, 245, var(--content-box-bg-dim)), rgba(245, 245, 245, var(--content-box-bg-dim))), var(--content-box-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

 body.dark-mode .content-box {
    background-image: linear-gradient(rgba(0, 0, 0, var(--content-box-bg-dim)), rgba(0, 0, 0, var(--content-box-bg-dim))), var(--content-box-bg-image);

    background-color: rgb(0 0 0 / 80%);
  
}

.app-box {
    width: 100%;
    padding: 16px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='none' stroke='%23333' stroke-width='8' stroke-linecap='round' d='M25,4 A21,21 0 0,1 46,25' opacity='0.8'%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    background-size: 50px 50px;
  
}

.app-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Typografie */
.logo {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: contain;
    object-position: left;
}

.headline {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 2.25rem;
    letter-spacing: normal;
    margin: 20px 0 0;
}


.body-text {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    margin: 20px 0 0;
}

.body-text div, .body-text p {
    padding-bottom: 20px;
}

#lang-switcher {
    position: absolute;
    bottom: 22px;

}
#lang-switcher:not(.funnel) {
    right: 8px;
}

#lang-switcher.funnel {
    left: 50%;
    transform: translateX(-50%);
}

/* Theme Switch */
.theme-switch-wrapper {
    position: sticky;
    top: 29px;
    /* left: 50%; */
    /* margin-right: 20px; */
    /* margin-left: auto; */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 0;
    z-index: 9999;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    width: 44px;
    position: relative;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--bg-gray);
    position: absolute;
    inset: 0;
    cursor: pointer;
    transition: var(--transition-speed);
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-light);
    transition: var(--transition-speed);
    z-index: 2;
}

.slider.round,
.slider.round:before {
    border-radius: 34px;
}

/* Theme Icons */
.sun,
.moon {
    position: absolute;
    top: 6px;
    z-index: 3;
    stroke-width: 2px;
    stroke: #666;
    transition: var(--transition-speed);
}

.sun {
    left: 6px;
}

.moon {
    right: 6px;
}

.body-text img {
    max-width: 100%;
    height: auto;
}

/* Dark Mode Background */
body.dark-mode {
    color: var(--text-light);
    background-color: var(--bg-dark);
    background-image: linear-gradient(to bottom,
            rgba(32, 35, 42, 0.95),
            rgba(17, 24, 39, 0.3));
}

body.dark-mode #MainForm{
    color: var(--text-light);
    background-color: var(--bg-dark);
    background-image: linear-gradient(to bottom,
            rgba(32, 35, 42, 0.95),
            rgba(17, 24, 39, 0.3));
}

body.dark-mode .app-box {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='8' stroke-linecap='round' d='M25,4 A21,21 0 0,1 46,25' opacity='0.8'%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-color: #0a0a0a
}

/* Theme Switch States */
input:checked+.slider {
    background-color: #AFAFAF;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

input:checked+.slider .sun {
    opacity: 0;
}

input:checked+.slider .moon {
    opacity: 1;
}

input:not(:checked)+.slider .sun {
    opacity: 1;
}

input:not(:checked)+.slider .moon {
    opacity: 0;
}

/* CSS Isolation for HTML content - prevents Tailwind from affecting serialized HTML */
.isolated-html *:not(img, video, .copy-btn, .copy-btn *) {
  all: revert;
}

/* Responsive Design */
@media (min-width: 768px) {
    .content-box {
        display: block;
        max-width: 28rem;
        position: relative;
    }

    .wrapper {
        flex-direction: row;
    }

    .app-box {
        width: 100%;
        padding: 0px;
    }
}

@media (min-width: 1280px) {

  .content-box {
        display: block;
        max-width: 42rem;
    }
    .wrapper {
        padding-bottom: 0;
        height: 100dvh;
        min-height: auto;
    }

}
@media (max-width: 768px) {
    .theme-switch-wrapper {
        display: none;
    }

    .headline {
        font-size: 1.875rem;
    }

    .body-text {
        font-size: 1rem;
    }

    .app-box {
        padding: 0px;
        border-radius: 0px;
        margin: 0px;
        height: 100%;

    }

    .wrapper {
        padding-bottom: 0;
        height: 100dvh;
        min-height: auto;
    }

}
 .weglot_switcher.bubble .language-option.active-language a {
 font-size: 12px !important ;
}
    .dark-mode .weglot_switcher.bubble .language-option.active-language a {
color: #a1a1a1 !important ; 
}


.dark-mode  svg.language-icon path {
  fill: #a1a1a1 !important;
}

svg.language-icon {
    display: none !important;
}